home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ WinMessenger 6.xpl < prev    next >
Text File  |  2002-01-13  |  2KB  |  74 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="6"
  3. "COUNT"="1"
  4. "UIPATH"="Internet\Instant Messaging\Windows Messenger\System"
  5. "NAME"="Downloading of advertising"
  6. "LANGUAGE"="VBScript"
  7. "VERSION"="1.53"
  8. "TEXT 1"="Enable downloading of advertising"
  9. "DESCRIPTION 1"="By default, Windows Messenger downloads adverts every 6 minutes while you are logged in. If you want, you can disable this, by clearing the tick in the box. You can enable it again by putting a tick in the box."
  10. "DESCRIPTION 2"="NOTE #1: After re-enabling, you will need to run Messenger to let it tidy up its settings."
  11. "DESCRIPTION 3"="NOTE #2: This does not apply to Messenger versions 4.x and above. If you want to disable adverts in these releases, we recommed Patchou's Messenger Plus! Extension from http://www.patchou.com/msgplus/"
  12. "DESCRIPTION 4"="Windows Messenger may be obtained at http://messenger.msn.com/"
  13. "AUTHOR"="Xteq Systems (Neil R. Turner)"
  14. "CONTACTURL"="http://www.xteq.com/"
  15. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  16. "COMMENT 1"="Thanks to Chris Pirillo [chris@lockergnome.com] and "Lockergnomie" Chris Johnson for suggesting this tweak in the awesome Lockergome.com Windows newsletter!"
  17.  
  18. sP="HKLM\Software\Microsoft\MessengerService\InstallationDirectory"
  19.  
  20. Sub Plugin_Initialize
  21.  i=RegValueExists(sP)
  22.  if i=false then
  23.     Call Disable()
  24.  else
  25.   t=RegReadValue(sP)
  26.   If FileExists(t & "\links.txt") then
  27.      Call TxtOpen(t & "\links.txt")
  28.      i=TxtGetLineCount
  29.      if i>2 then
  30.         s=TxtGetLine(2)
  31.         if s="<msn-data>" then
  32.           Call SetUIElement(1,true)
  33.         end if
  34.      end if
  35.   else
  36.      Call Disable()
  37.   end if
  38.  end if
  39. End Sub
  40.  
  41. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  42.  t=RegReadValue(sP)
  43.  s=GetUIElement(1)
  44.  if s=false then
  45.   ' Before we make any changes, backup the file!
  46.   Call FileBackup(t & "\links.txt")
  47.  
  48.   ' OK, let's go!
  49.   i=TxtGetLineCount
  50.   if i>1 then
  51.    For j=1 to i
  52.     j=j+1
  53.  if j<=i then
  54.      Call TxtDeleteLine(j)
  55.  end if
  56.    Next
  57.   end if
  58.   Call TxtSetLine(1,"")
  59.   Call TxtSave()
  60.  
  61.   Call FileSetAttribute(t & "\links.txt","R+")
  62.  else
  63.   Call FileSetAttribute(t & "\links.txt","R-")
  64.   Call MsgInformation("Downloading of adverts has been enabled. Please sign in to MSN Messenger now to clear up settings.")
  65.  end if
  66. End Sub
  67.  
  68. Sub Plugin_Terminate
  69.   Call TxtClose()
  70. End Sub
  71.  
  72.  
  73.  
  74.